﻿@model BlackBird.Models.IncomeAndExpendInputDM
@using BlackBird.Resources

<section class="overlay_window">

    <header>
        <h1>@ViewBag.Title</h1>
    </header>

@using (Html.BeginForm(MVC.IncomeExpend.AddIncomeAndExpend(), FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)

    
        <div class="editor-field">
            @Html.HiddenFor(model => model.ParentId)
            @Html.HiddenFor(model => model.type)
            @Html.HiddenFor(model => model.Id)
        </div>

        <div class="editor-label">
            名称：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
    
        <div class="editor-label">
            数量：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Count)<span>元</span>
            @Html.ValidationMessageFor(model => model.Count)
        </div>

        <div class="editor-label">
            描述
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>
    
        <div>
            @{Html.RenderPartial(MVC.Shared.Views.Util.UploadFileControl);}
        </div>

        <p>
            <input type="submit" value="@BBStrings.Confirm" />
        </p>   
}
</section>

